<template>
  <div class="find">
    <div class="header">
      <span>发现</span>
    </div>
    <div class="main">
      <div class="interview">
        <div class="title-arrow">
          <div class="title">面试技巧</div>
          <div class="arrow" @click="$router.push('/technicList')">
            <div>查看更多</div>
            <div class="change">
            <van-icon name="arrow"/>
            </div>
          </div>
        </div>
        <inter-view v-for="item in list" :key="item.id" :item="item"></inter-view>
      </div>
      <div class="shop">
        <div class="title-arrow">
          <div class="title">市场数据</div>
          <div class="arrow" >
            <div>查看更多</div>
            <div class="change">
            <van-icon name="arrow"/>
            </div>
          </div>
        </div>
        <span class="tag">宿州</span>
        <span class="tag" >人事专员</span>
        <div class="list">
        <salary-sheet></salary-sheet>
        </div>
      </div>
      <div class="experience">
        <div class="title-arrow">
          <div class="title">面经分享</div>
          <div class="arrow">
            <div>查看更多</div>
            <div class="change">
            <van-icon name="arrow"/>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { technicAPI } from '@/api/index'
import InterView from './components/InterView.vue'
import SalarySheet from './components/SalarySheet.vue'
export default {
  name: 'discoverView',
  data () {
    return {
      list: []
    }
  },
  components: {
    InterView,
    SalarySheet
  },
  created () {
    this.getauth()
  },
  methods: {
    async getauth () {
      const res = await technicAPI({
        start: 0,
        limit: 3
      })
      this.list = res.data.list
      console.log(res.data.list)
    }
  }
}
</script>

<style lang="less" scoped>
*{
  margin: 0;
  padding: 0;
}
.find{
  background-color: #f9f9f9;
.header{
width: 100vw;
height: 12.5333vw;
border-bottom: .2667vw solid #efefef;
background-color: #fff;
text-align: center;
span{
  font-size: 4.8vw;
  font-weight: 700;
  line-height: 12vw;
}
}
.main{
  .interview{
    padding:20px 15px 15px;
    height: 350px;
    background-color: #fff;
    margin-bottom: 10px;
    .title-arrow{
      display: flex;
      justify-content: space-between;
      padding-bottom: 20px;
      .title{
        font-weight: 700;
        font-size: 18px;
      }
      .arrow{
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        margin-top: 5px;
        .change{
          margin-top: 2px;
        }
      }
    }
  }
  .shop{
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    .tag{
      font-size: 14px;
      padding: 5px;
      background-color: #eceaea;
      border-radius: 5px;
      margin-right: 10px;
    }
    .list{
      margin-top: 30px;
    }
    .title-arrow{
      display: flex;
      justify-content: space-between;
      padding-bottom: 20px;
      .title{
        font-weight: 700;
        font-size: 18px;
      }
      .arrow{
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        margin-top: 5px;
        .change{
          margin-top: 2px;
        }
      }
    }
  }
  .experience{
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    .title-arrow{
      display: flex;
      justify-content: space-between;
      padding-bottom: 20px;
      .title{
        font-weight: 700;
        font-size: 18px;
      }
      .arrow{
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        margin-top: 5px;
        .change{
          margin-top: 2px;
        }
      }
    }
  }
}
}
</style>
